var db           = require('../../config/mongo_database');
var logger       = require('../../config/log4js').logger('access');
var property     = require('../../route/property');
var tokenManager = require('../../config/token_manager');


// 获取我的钱包信息
exports.wallet = function(req, res){
	var userid = tokenManager.getUserId(req);

	db.walletModel.find({userid: userid}, function(err, list){
		res.json({status:200, list:list, msg:'返回成功'})
	})
}